package cn.toma.common.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author zqx
 * @version 1.0.0
 * @ClassName RestTemplateBuilderConfig.java
 * @Description
 * @createTime 2019年09月22日 17:07:00
 */
@Configuration
public class RestTemplateBuilderConfig
{
	@Autowired
	private RestTemplateBuilder restTemplateBuilder;

	@Bean
	public RestTemplate restTemplate()
	{
		return restTemplateBuilder.build();
	}
}
